﻿namespace Task22
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Numerics;
    using System.Text;
    using System.Threading.Tasks;

    class Task2
    {
        static void Main()
        {
            string input = Console.ReadLine().Trim();

            string[] fffflowers = input.Split();
            BigInteger[] flowers = new BigInteger[fffflowers.Length];
            for (int i = 0; i < flowers.Length; i++)
            {
                flowers[i] = BigInteger.Parse(fffflowers[i]);
            }

            short mollyPos = 0;
            short dollyPos = (short)(flowers.Length - 1);

            BigInteger mollyFlowers = 0;
            BigInteger dollyFlowers = 0;
            
            while (true)
            {
                BigInteger mollyNextSteps = flowers[mollyPos];
                BigInteger dollyNextSteps = flowers[dollyPos];


                if (flowers[dollyPos] == 0 || flowers[mollyPos] == 0)
                {
                    dollyFlowers += flowers[dollyPos];
                    mollyFlowers += flowers[mollyPos];

                    break;
                }

                if (dollyPos == mollyPos)
                {
                    dollyFlowers = flowers[dollyPos] / 2;
                    mollyFlowers = flowers[mollyPos] / 2;

                    if ((flowers[dollyPos] % 2) != 0)
                    {
                        flowers[dollyPos] = 1;
                    }
                    else
                    {
                        flowers[dollyPos] = 0;
                    }
                }
                else
                {
                    dollyFlowers += flowers[dollyPos];
                    flowers[dollyPos] = 0;

                    mollyFlowers += flowers[mollyPos];
                    flowers[mollyPos] = 0;
                }

                short mollyNextPos = (short)(mollyNextSteps % flowers.Length);
                short dollyNextPos = (short)(dollyNextSteps % flowers.Length);

                if (mollyPos + mollyNextPos >= flowers.Length)
                {
                    mollyPos = (short)(mollyPos + mollyNextPos - flowers.Length);
                }
                else
                {
                    mollyPos += mollyNextPos;
                }

                if (dollyPos - dollyNextPos < 0)
                {
                    dollyPos = (short) (dollyPos - dollyNextPos + flowers.Length);
                }
                else
                {
                    dollyPos -= dollyNextPos;
                }

            }

            bool isMollyZero = false;
            bool isDollyZero = false;

            if (flowers[dollyPos] == 0)
            {
                isDollyZero = true;
            }

            if (flowers[mollyPos] == 0)
            {
                isMollyZero = true;
            }

            if (isDollyZero == true && isMollyZero == true)
            {
                Console.WriteLine("Draw");
            }
            else if (isDollyZero == true)
            {
                Console.WriteLine("Molly");
            }
            else
            {
                Console.WriteLine("Dolly");
            }

            Console.WriteLine("{0} {1}", mollyFlowers, dollyFlowers);
        }
    }
}